package com.jjb.saas.demo.infrastructure.converter;


import com.jjb.saas.demo.domain.role.model.RoleE;
import com.jjb.saas.demo.domain.role.model.vo.RolePermsGroupVO;
import com.jjb.saas.demo.infrastructure.persistence.domainobject.RoleDO;
import com.jjb.saas.system.client.role.response.RoleCO;
import com.jjb.saas.system.client.role.response.RoleDetailCO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author tzh * @date 2022年07月07日 10:06
 */
@Mapper(componentModel = "spring")
public interface RoleConvertor {


    RoleDO convertEToDO(RoleE roleE);

    List<RoleCO> convertDOSToCOS(List<RoleDO> roleDOS);

    RoleCO convertDOToCO(RoleDO roleDO);

    RoleDetailCO convertDOToDetailCO(RoleDO roleDO);

}
